home *** CD-ROM | disk | FTP | other *** search
/ Aminet 23 / Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso / Aminet / dev / amos / AMOS1097.lzh / AMOSLIST / 000227_amos-request@svcs1.digex.net_Sat Oct 25 11:21:40 1997.msg < prev    next >
Internet Message Format  |  1997-11-02  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail2.access.digex.net (8.8.5/8.8.5) with ESMTP id LAA11106
  3.     for <mcox@access.digex.net>; Sat, 25 Oct 1997 11:21:38 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id KAA21745
  6.     for amos-out; Sat, 25 Oct 1997 10:15:50 -0400 (EDT)
  7. Received: from mail4.access.digex.net (mail4.access.digex.net [205.197.247.2])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id KAA21742
  9.     for <amos-list@svcs1.digex.net>; Sat, 25 Oct 1997 10:15:49 -0400 (EDT)
  10. Received: from leary.huron.net (root@leary.huron.net [205.150.207.2])
  11.     by mail4.access.digex.net (8.8.5/8.8.5) with ESMTP id KAA13334
  12.     for <amos-list@access.digex.net>; Sat, 25 Oct 1997 10:15:48 -0400 (EDT)
  13. Received: from golden.net (ppp23-ts1-kw.huron.net [205.150.207.72])
  14.     by leary.huron.net (8.8.5/8.8.5) with SMTP id KAA12378
  15.     for <amos-list@access.digex.net>; Sat, 25 Oct 1997 10:12:09 -0400
  16. From: "Mr. Giark To You" <joehick@golden.net>
  17. To: AMOS List <amos-list@access.digex.net>
  18. Date: Sat, 25 Oct 1997 10:08:01 -0500
  19. Message-ID: <yam7237.86.4934416@huron.net>
  20. In-Reply-To: <34514FC3.MD-0.196.malcolm.murray@virgin.net>
  21. X-Mailer: YAM 1.3.3 - Amiga Mailer by Marcel Beck
  22. Subject: Re: Pattern Match
  23. MIME-Version: 1.0
  24. Content-Type: text/plain
  25. Status: O
  26. X-Status: 
  27.  
  28. On 25-Oct-97, Alastair Murray wrote:
  29. >Anyone have any AMOS code for doing a pattern match on a string?
  30. >e.g. *.AMOS or #?.AMOS to see if a string contains .AMOS in it
  31. >anywhere.
  32. >Saves me writing it myself...
  33.  
  34. A=Instr(<string to check>,<string to search for>)
  35.  
  36. If it was there, A will contain the start position of the first occurance.
  37. Otherwise, A will be 0.
  38.  
  39. Well met and godspeed,
  40.                       Giark
  41.                                            joehick@golden.net
  42.                              http://www.golden.net/~joehick/fbn/index.html
  43.      ______  ______    _____  .------------------------------------------.
  44.     / ____/ / __  /   / ___ \ !     AMOS games, utilities, demos, etc.   !
  45.    / /__   / /_/ /   / /  / / !                                          !
  46.   / ___/  / ___  |  / /  / /  !       CyberSpace BBS (519)579-0072       !
  47.  / /     / /__/ /  / /  / /   !     on A2000 060/50MHz (519)579-0173     !
  48. /_/     /______/  /_/  /_/    !                                          !
  49.    Fly By Nite Videe-Oh!      !  FBN Amiga 500 020 14MHz 1C/5F RAM 3.1OS !
  50.          IAPA Member          `------------------------------------------'
  51.